package com.bupt.inklue.dto;

import com.bupt.inklue.pojo.Work;

public class WorkDTO {

    private String code;
    private String name;
    private String artist;
    private String era;
    private String style;

    public WorkDTO() {
    }

    public WorkDTO(Work work) {
        this.code = work.getCode();
        this.name = work.getName();
        this.artist = work.getArtist();
        this.era = work.getEra();
        this.style = work.getStyle();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getArtist() {
        return artist;
    }

    public void setArtist(String artist) {
        this.artist = artist;
    }

    public String getEra() {
        return era;
    }

    public void setEra(String era) {
        this.era = era;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }
}
